aliases:
- How to/Embed files
- Linking notes and files/Embedding files
cssclasses:
- soft-embed
permalink: embeds
Learn how you can embed other notes and media into your notes. By embedding files in your notes, you can reuse content across your vault.
To embed a file in your vault, add an exclamation mark (!
) in front of an Internal link. You can embed files in any of the Accepted file formats.
On desktop, you can also drag and drop supported files directly into your note to embed them automatically.
To embed a note:
![[Internal links]]
![[Internal links#^b15695]]
The text below is an example of an embedded block:
Learn how to link to notes, attachments, and other files from your notes, using internal links. By linking notes, you can create a network of knowledge.
To embed an image:
![[Engelbart.jpg]]
You can change the image dimensions, by adding |640x480
to the link destination, where 640 is the width and 480 is the height.
![[Engelbart.jpg|100x145]]
If you only specify the width, the image scales according to its original aspect ratio. For example, ![[Engelbart.jpg|100]]
.
You can also embed an externally hosted image by using a markdown link. You can control the width and height the same way as a wikilink.

To embed an audio file:
![[Excerpt from Mother of All Demos (1968).ogg]]
To embed a PDF:
![[Document.pdf]]
You can also open a specific page in the PDF, by adding #page=N
to the link destination, where N
is the number of the page:
![[Document.pdf#page=3]]
You can also specify the height in pixels for the embedded PDF viewer, by adding #height=[number]
to the link. For example:
![[Document.pdf#height=400]]
To embed a list from a different note, first add a block identifier to your list:
- list item 1
- list item 2
^my-list-id
Then link to the list using the block identifier:
![[My note#^my-list-id]]
To embed search results in a note, add a query
code block:
```query
embed OR search
```
Obsidian Publish doesn't support embedded search results. To see a live rendered example, use the code block above within your vault.